#define  _CRT_SECURE_NO_WARNINGS 1

#include "Priority_Queue.hpp"

namespace xw
{
	
	void test_priority_queue1()
	{
		priority_queue<int, vector<int>, mygreater<int>> q1;
		q1.push(1);
		q1.push(3);
		q1.push(4);
		q1.push(7);
		q1.push(9);
		q1.push(22);
		q1.push(99);
		cout << q1.size() << endl;
		while (!q1.empty())
		{
			cout << q1.top() << " ";
			q1.pop();
		}
		cout << endl;

		vector<int> v1 = { 1,3,4,7,9, 22, 99 };

		priority_queue<int, vector<int>, mygreater<int>> q2(v1.begin(), v1.end());
		while (!q2.empty())
		{
			cout << q2.top() << " ";
			q2.pop();
		}
		cout << endl;
	}


}

int main()
{
	xw::test_priority_queue1();
}